﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class LienHe : XPObject
    {
        public LienHe()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public LienHe(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        string fHoTen = string.Empty;
        [Size(100)]
        public string HoTen
        {
            get { return fHoTen; }
            set { SetPropertyValue<string>("HoTen", ref fHoTen, value); }
        }
        string fChucVu = string.Empty;
        [Size(500)]
        public string ChucVu
        {
            get { return fChucVu; }
            set { SetPropertyValue<string>("ChucVu", ref fChucVu, value); }
        }
        BoPhan fBoPhan;
        [Association(@"LienHeReferencesBoPhan")]
        public BoPhan BoPhan
        {
            get { return fBoPhan; }
            set { SetPropertyValue<BoPhan>("BoPhan", ref fBoPhan, value); }
        }
        string fDienThoai;
        [Size(50)]
        public string DienThoai
        {
            get { return fDienThoai; }
            set { SetPropertyValue<string>("DienThoai", ref fDienThoai, value); }
        }
        string fEmail;
        [Size(50)]
        public string Email
        {
            get { return fEmail; }
            set { SetPropertyValue<string>("Email", ref fEmail, value); }
        }
        CongTy fCongTy;
        [Association(@"LienHeReferencesCongTy")]
        public CongTy CongTy
        {
            get { return fCongTy; }
            set { SetPropertyValue<CongTy>("CongTy", ref fCongTy, value); }
        }
    }
}
